Must be run in CMD with admin rights (32-bit regsvr32, since PCAutomation / Smap3D P&ID is a 32-bit process):

C:\Windows\SysWOW64\regsvr32.exe    "C:\PCAutomation\PCsPluginTestDLL_Modal\PCsPluginTestDLL_Modal.comhost.dll"
C:\Windows\SysWOW64\regsvr32.exe /u "C:\PCAutomation\PCsPluginTestDLL_Modal\PCsPluginTestDLL_Modal.comhost.dll"

Every build (via Visual Studio or `dotnet build`) automatically copies its output into
C:\PCAutomation\PCsPluginTestDLL_Modal\ (everything must be in the same folder):
  PCsPluginTestDLL_Modal.comhost.dll   <- native COM shim, this is what gets regsvr32'd
  PCsPluginTestDLL_Modal.dll           <- managed plugin
  PCsPluginTestDLL_Modal.pdb
  PCsPluginTestDLL_Modal.runtimeconfig.json
  PCsPluginTestDLL_Modal.deps.json
  Dpscad.dll

The .MIF file is copied separately to C:\PCAutomation\ itself (PCAutomation / Smap3D P&ID only loads .MIF files
from its own system directory, not a subfolder).

The machine must have the x86 .NET Desktop Runtime installed (net9.0-windows).

CLSID (must match Cmd1 in the .MIF file): {8FBDD806-182B-4D5C-82F3-491AA7057001}
